package com.zj.demo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author 作者 zj:
 * @version 创建时间：2019年4月9日 上午10:27:14
 * 类说明
 */
@ConfigurationProperties(prefix="spring.encrypt")
public class EncryptConfig {
	
	private String charset = "UTF-8"; 
	private String encryptKey;
	/**
	 * 开启调试模式，调试模式下不进行加解密操作，用于像Swagger这种在线API测试场景
	 */
	private boolean debug = false;
	/**
	 * 签名过期时间（分钟）
	 */
	private Long signExpireTime = 10L;
	public String getCharset() {
		return charset;
	}
	public void setCharset(String charset) {
		this.charset = charset;
	}
	public String getEncryptKey() {
		return encryptKey;
	}
	public void setEncryptKey(String encryptKey) {
		this.encryptKey = encryptKey;
	}
	public boolean isDebug() {
		return debug;
	}
	public void setDebug(boolean debug) {
		this.debug = debug;
	}
	public Long getSignExpireTime() {
		return signExpireTime;
	}
	public void setSignExpireTime(Long signExpireTime) {
		this.signExpireTime = signExpireTime;
	}

}
